#!/usr/bin/node

const log = console.log,
      fs = require('fs'),
      filename = process.argv[2] || __filename;
try{
  let fid = fs.openSync(filename,'r'),
      size = fs.statSync(filename).size;
  let buffer = new Buffer(size);

  fs.readSync(fid,buffer,0,size,0);

  log(buffer.toString('utf8'));
  fs.closeSync(fid);
}catch(e){
  console.error(e.message);
  process.exit(1);
}
